package com.agger.eurekaclientuserservice.model.excelTemp;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;

/**
 * @classname: ArticleTemp
 * @description: 文章 Excel模板
 * @author chenhx
 * @date 2020-07-22 09:07:20
 */
@Data
@ContentRowHeight(15)   // 指定文件行高
@HeadRowHeight(20)      // 指定头行号
@ColumnWidth(25)        // 指定列宽
public class ArticleTemp {

    @ExcelIgnore
    private String id;

    @ExcelProperty({"热门文章精选","文章标题"})   // 带主标题的表头
    private String title;

    @ColumnWidth(30)                            // 指定列宽为30
    @ExcelProperty({"热门文章精选","文章链接"})
    private String url;

    @ExcelProperty({"热门文章精选","作者"})
    private String author;

    @ExcelProperty({"热门文章精选","发布日期"})
    private String date;
}
